import request from '@/utils/request'

// 查询加密机操作日志列表
export function listEncryptMachineLog(query) {
  return request({
    url: '/bus/encryptMachineLog/list',
    method: 'get',
    params: query
  })
}

// 查询加密机操作日志详细
export function getEncryptMachineLog(id) {
  return request({
    url: '/bus/encryptMachineLog/' + id,
    method: 'get'
  })
}

// 新增加密机操作日志
export function addEncryptMachineLog(data) {
  return request({
    url: '/bus/encryptMachineLog',
    method: 'post',
    data: data
  })
}

// 修改加密机操作日志
export function updateEncryptMachineLog(data) {
  return request({
    url: '/bus/encryptMachineLog',
    method: 'put',
    data: data
  })
}

// 删除加密机操作日志
export function delEncryptMachineLog(id) {
  return request({
    url: '/bus/encryptMachineLog/' + id,
    method: 'delete'
  })
}

// 加密机签名统计
export function getEncryptStatistic(params) {
  return request({
    url: '/bus/encryptMachineLog/listStatistics',
    method: 'get',
    params: params
  })
}
